* babl/babl-fish.c: (fishing_result_examine), (go_fishing),
(babl_fish): go fishing for an existing fish for the
source/destination combination before trying to create one.
svn path=/trunk/; revision=227
return 0; /* continue iterating */
}
-static int yes=0;
-static int no=0;
-
static Babl *
go_fishing (Babl *source,
Babl *destination)
data.destination = destination;
data.ret = NULL;
-
babl_db_each (db, fishing_result_examine, &data);
-
- if (data.ret != NULL)
- {
- yes++;
- }
- else
- {
- no++;
- }
-
return data.ret;
}
}